package com.easy.neo4j.service.impl;

import com.easy.common.util.Result;
import com.easy.neo4j.repository.RailRepository;
import com.easy.neo4j.service.RailService;
import com.easy.neo4j.entry.Rail;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-03-31 22:52
 **/
@Component
public class RailServiceImpl implements RailService {
    @Resource
    RailRepository railRepository;
    @Override
    public Result<List<Rail>> findRailByName(String parkName) {
        return Result.success(railRepository.findRailByName(parkName));
    }
}
